﻿using System;

namespace ThreeDWorld
{
    public struct Sequence : IEquatable<Sequence>
    {
        public readonly int StartFrame;
        public readonly int EndFrame;
        public readonly int Speed;
        public readonly bool Looping;

        public Sequence(int startFrame, int endFrame, int speed, bool looping)
        {
            StartFrame = startFrame;
            EndFrame = endFrame;
            Speed = speed;
            Looping = looping;
        }

        public bool Equals(Sequence sequence)
        {
            return StartFrame == sequence.StartFrame && EndFrame == sequence.EndFrame && Speed == sequence.Speed && Looping == sequence.Looping;
        }
    }
}
